package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
    //分页查询
    Page<Dish> findByPage(String name, Integer pageNum, Integer pageSize);

    //添加菜品
    void save(Dish dish);

    //根据主键查询
    Dish findById(Long id);

    //修改
    void update(Dish dish);

    //删除
    void deleteByIds(Long[] ids);

    //停售,启售
    void updateByIds(Integer status, Long[] ids);

    //查询指定分类下指定状态的菜品信息
    List<Dish> findList(Long categoryId, Integer status,String name);
}
